/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Principal.java
 *
 * Created on 03-may-2011, 19:20:55
 */

package floristeria;

/**
 *
 * @author sergio
 */
public class Principal extends javax.swing.JFrame {

    /** Creates new form Principal */
    public Principal() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mnuPrincipal = new javax.swing.JMenuBar();
        mnuArchivo = new javax.swing.JMenu();
        mnuEtiquetas = new javax.swing.JMenuItem();
        mnuSalir = new javax.swing.JMenuItem();
        mnuGestion = new javax.swing.JMenu();
        mnuAnadir = new javax.swing.JMenu();
        mnuALote = new javax.swing.JMenuItem();
        mnuAProveedor = new javax.swing.JMenuItem();
        mnuEliminar = new javax.swing.JMenu();
        mnuELote = new javax.swing.JMenuItem();
        mnuEProveedor = new javax.swing.JMenuItem();
        mnuModificar = new javax.swing.JMenu();
        mnuMLote = new javax.swing.JMenuItem();
        mnuMProveedor = new javax.swing.JMenuItem();
        mnuConsultar = new javax.swing.JMenu();
        mnuCLote = new javax.swing.JMenuItem();
        mnuCProveedor = new javax.swing.JMenuItem();
        mnuVentas = new javax.swing.JMenu();
        mnuCrearVentas = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Principal");

        mnuArchivo.setText("Archivo");

        mnuEtiquetas.setText("Etiquetas");
        mnuEtiquetas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuEtiquetasActionPerformed(evt);
            }
        });
        mnuArchivo.add(mnuEtiquetas);

        mnuSalir.setText("Salir");
        mnuSalir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                mnuSalirMouseClicked(evt);
            }
        });
        mnuSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuSalirActionPerformed(evt);
            }
        });
        mnuArchivo.add(mnuSalir);

        mnuPrincipal.add(mnuArchivo);

        mnuGestion.setText("Gestión");

        mnuAnadir.setText("Añadir");

        mnuALote.setText("Lote");
        mnuALote.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuALoteActionPerformed(evt);
            }
        });
        mnuAnadir.add(mnuALote);

        mnuAProveedor.setText("Proveedor");
        mnuAProveedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuAProveedorActionPerformed(evt);
            }
        });
        mnuAnadir.add(mnuAProveedor);

        mnuGestion.add(mnuAnadir);

        mnuEliminar.setText("Eliminar");

        mnuELote.setText("Lote");
        mnuELote.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuELoteActionPerformed(evt);
            }
        });
        mnuEliminar.add(mnuELote);

        mnuEProveedor.setText("Proveedor");
        mnuEProveedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuEProveedorActionPerformed(evt);
            }
        });
        mnuEliminar.add(mnuEProveedor);

        mnuGestion.add(mnuEliminar);

        mnuModificar.setText("Modificar");

        mnuMLote.setText("Lote");
        mnuMLote.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMLoteActionPerformed(evt);
            }
        });
        mnuModificar.add(mnuMLote);

        mnuMProveedor.setText("Proveedor");
        mnuMProveedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMProveedorActionPerformed(evt);
            }
        });
        mnuModificar.add(mnuMProveedor);

        mnuGestion.add(mnuModificar);

        mnuConsultar.setText("Consultar");

        mnuCLote.setText("Lote");
        mnuCLote.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCLoteActionPerformed(evt);
            }
        });
        mnuConsultar.add(mnuCLote);

        mnuCProveedor.setText("Proveedor");
        mnuCProveedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCProveedorActionPerformed(evt);
            }
        });
        mnuConsultar.add(mnuCProveedor);

        mnuGestion.add(mnuConsultar);

        mnuPrincipal.add(mnuGestion);

        mnuVentas.setText("Ventas");

        mnuCrearVentas.setText("Crear...");
        mnuCrearVentas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCrearVentasActionPerformed(evt);
            }
        });
        mnuVentas.add(mnuCrearVentas);

        mnuPrincipal.add(mnuVentas);

        setJMenuBar(mnuPrincipal);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 508, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 258, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mnuSalirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mnuSalirMouseClicked

    }//GEN-LAST:event_mnuSalirMouseClicked

    private void mnuSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuSalirActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_mnuSalirActionPerformed

    private void mnuEtiquetasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuEtiquetasActionPerformed
        // TODO add your handling code here:
        new Etiquetas().setVisible(true);
        
    }//GEN-LAST:event_mnuEtiquetasActionPerformed

    private void mnuCrearVentasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCrearVentasActionPerformed
        // TODO add your handling code here:
        new Ventas().setVisible(true);
    }//GEN-LAST:event_mnuCrearVentasActionPerformed

    private void mnuALoteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuALoteActionPerformed
        // TODO add your handling code here:
        new ALote().setVisible(true);
    }//GEN-LAST:event_mnuALoteActionPerformed

    private void mnuAProveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuAProveedorActionPerformed
        // TODO add your handling code here:
        new AProveedor().setVisible(true);
    }//GEN-LAST:event_mnuAProveedorActionPerformed

    private void mnuELoteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuELoteActionPerformed
        // TODO add your handling code here:
        new DLote().setVisible(true);
    }//GEN-LAST:event_mnuELoteActionPerformed

    private void mnuEProveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuEProveedorActionPerformed
        // TODO add your handling code here:
        new DProveedor().setVisible(true);
    }//GEN-LAST:event_mnuEProveedorActionPerformed

    private void mnuMLoteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMLoteActionPerformed
        // TODO add your handling code here:
        new MLote().setVisible(true);
    }//GEN-LAST:event_mnuMLoteActionPerformed

    private void mnuMProveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMProveedorActionPerformed
        // TODO add your handling code here:
        new MProveedor().setVisible(true);
    }//GEN-LAST:event_mnuMProveedorActionPerformed

    private void mnuCLoteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCLoteActionPerformed
        // TODO add your handling code here:
        new CLote().setVisible(true);
    }//GEN-LAST:event_mnuCLoteActionPerformed

    private void mnuCProveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCProveedorActionPerformed
        // TODO add your handling code here:
        new CProveedor().setVisible(true);
    }//GEN-LAST:event_mnuCProveedorActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Principal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem mnuALote;
    private javax.swing.JMenuItem mnuAProveedor;
    private javax.swing.JMenu mnuAnadir;
    private javax.swing.JMenu mnuArchivo;
    private javax.swing.JMenuItem mnuCLote;
    private javax.swing.JMenuItem mnuCProveedor;
    private javax.swing.JMenu mnuConsultar;
    private javax.swing.JMenuItem mnuCrearVentas;
    private javax.swing.JMenuItem mnuELote;
    private javax.swing.JMenuItem mnuEProveedor;
    private javax.swing.JMenu mnuEliminar;
    private javax.swing.JMenuItem mnuEtiquetas;
    private javax.swing.JMenu mnuGestion;
    private javax.swing.JMenuItem mnuMLote;
    private javax.swing.JMenuItem mnuMProveedor;
    private javax.swing.JMenu mnuModificar;
    private javax.swing.JMenuBar mnuPrincipal;
    private javax.swing.JMenuItem mnuSalir;
    private javax.swing.JMenu mnuVentas;
    // End of variables declaration//GEN-END:variables

}
